package dominioProblema;

import br.ufsc.inf.leobr.cliente.Jogada;

public class Pedra implements Jogada{
	
	protected static final long serialVersionUID = 1L;
	protected boolean clipA;
	protected boolean clipB;
	protected boolean clipC;
	protected boolean clipD;
	protected int ladoA;
	protected int ladoB;
	protected int ladoC;
	protected int ladoD;
	protected int valor;
	protected String peca;
	protected int id;
	protected boolean pecaDouble;
	
	public Pedra(int i, int pa, int pb) {
		this.id = i;
		this.ladoA = pa;
		this.ladoB = pb;
		this.setClipA(true);
		this.clipB = false;
		this.clipC = false;
		this.clipD = false;
		this.valor = pa + pb;
		this.peca = String.valueOf(pa) + String.valueOf(pb);
		if (pa == pb)
			this.pecaDouble = true;
		else
			this.pecaDouble = false;
	}

	public Pedra(int id2, int pa, int pb, boolean double5) {
		this.id = id2;
		this.ladoA = pa;
		this.ladoB = pb;
		this.ladoC = 5;
		this.ladoD = 5;
		this.setClipA(true);
		this.clipB = false;
		this.clipC = true;
		this.clipD = true;
		this.valor = pa + pb;
		this.peca = String.valueOf(pa) + String.valueOf(pb);
		this.pecaDouble = true;
	}

	public Pedra() {
		// TODO Auto-generated constructor stub
	}

	public boolean getClipA() {
		return isClipA();
	}

	public boolean getClipB() {
		return isClipB();
	}

	public boolean getClipC() {
		return clipC;
	}

	public boolean getClipD() {
		return clipD;
	}

	public int getLadoA() {
		return ladoA;
	}

	public int getLadoB() {
		return ladoB;
	}

	public int getLadoC() {
		return ladoC;
	}

	public int getLadoD() {
		return ladoD;
	}

	public int getValor() {
		return valor;
	}
	
	public String getPeca() {
		return peca;
	}

	public int getId() {
		return id;
	}

	public boolean isClipA() {
		return clipA;
	}

	public void setClipA(boolean clipA) {
		this.clipA = clipA;
	}
	
	public boolean isClipB() {
		return clipB;
	}
	
	public void setClipB(boolean clipB) {
		this.clipB = clipB;
	}
	
	public boolean isDouble() {
		return pecaDouble;
	}

}